.. _ocabitstringsensor: 1.1.2.1.13 OcaBitstringSensor ============================== Class Hierarchy: :ref:`OcaRoot ` : :ref:`OcaWorker ` : :ref:`OcaSensor ` : :ref:`OcaBasicSensor ` : :ref:`OcaBitstringSensor ` .. cpp:class:: OcaBitstringSensor: OcaBasicSensor Bit string sensor. **Properties**: .. _ocabitstringsensor_reading: .. cpp:member:: OcaBitstring Reading The bitstring. New name as of v3 of this class. This property has id ``5.1``. .. _ocabitstringsensor_classid: .. cpp:member:: static const OcaClassID ClassID = "1.1.2.1.13" Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This property is an override of the **OcaRoot** property. This property has id ``1.1``. .. _ocabitstringsensor_classversion: .. cpp:member:: static const OcaClassVersionNumber ClassVersion = 3 Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the **OcaRoot** property. This property has id ``1.2``. Properties inherited from :ref:`ocabasicsensor`: - :cpp:texpr:`OcaClassID` :ref:`OcaRoot::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaRoot::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaRoot::Lockable ` - :cpp:texpr:`OcaLockState` :ref:`OcaRoot::LockState ` - :cpp:texpr:`OcaONo` :ref:`OcaRoot::ObjectNumber ` - :cpp:texpr:`OcaString` :ref:`OcaRoot::Role ` - :cpp:texpr:`OcaClassID` :ref:`OcaWorker::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaWorker::ClassVersion ` - :cpp:texpr:`OcaBoolean` :ref:`OcaWorker::Enabled ` - :cpp:texpr:`OcaString` :ref:`OcaWorker::Label ` - :cpp:texpr:`OcaTimeInterval` :ref:`OcaWorker::Latency ` - :cpp:texpr:`OcaONo` :ref:`OcaWorker::Owner ` - :cpp:texpr:`OcaMap` :ref:`OcaWorker::PortClockMap ` - :cpp:texpr:`OcaList` :ref:`OcaWorker::Ports ` - :cpp:texpr:`OcaClassID` :ref:`OcaSensor::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaSensor::ClassVersion ` - :cpp:texpr:`OcaSensorReadingState` :ref:`OcaSensor::ReadingState ` - :cpp:texpr:`OcaClassID` :ref:`OcaBasicSensor::ClassID ` - :cpp:texpr:`OcaClassVersionNumber` :ref:`OcaBasicSensor::ClassVersion ` **Methods**: .. _ocabitstringsensor_getnrbits: .. cpp:function:: OcaStatus GetNrBits(OcaUint16 &NrBits) Gets the number of bits of the bitstring data. This method has id ``5.1``. - :cpp:expr:`NrBits`: Output parameter. .. _ocabitstringsensor_getbit: .. cpp:function:: OcaStatus GetBit(OcaUint16 bitNr, OcaUint8 &bit) Gets the value of the given bit. This method has id ``5.2``. - :cpp:expr:`bitNr`: Input parameter. - :cpp:expr:`bit`: Output parameter. .. _ocabitstringsensor_getreading: .. cpp:function:: OcaStatus GetReading(OcaBitstring &Reading) Gets the entire bitstring. This method has id ``5.3``. - :cpp:expr:`Reading`: Output parameter. Methods inherited from :ref:`ocabasicsensor`: - :ref:`OcaBasicSensor::GetClassIdentification ` - :ref:`OcaBasicSensor::GetLockable ` - :ref:`OcaBasicSensor::GetLockState ` - :ref:`OcaBasicSensor::GetRole ` - :ref:`OcaBasicSensor::SetLockNoWrite ` - :ref:`OcaBasicSensor::SetLockNoReadWrite ` - :ref:`OcaBasicSensor::Unlock ` - :ref:`OcaBasicSensor::AddPort ` - :ref:`OcaBasicSensor::DeletePort ` - :ref:`OcaBasicSensor::DeletePortClockMapEntry ` - :ref:`OcaBasicSensor::GetEnabled ` - :ref:`OcaBasicSensor::GetLabel ` - :ref:`OcaBasicSensor::GetLatency ` - :ref:`OcaBasicSensor::GetOwner ` - :ref:`OcaBasicSensor::GetPath ` - :ref:`OcaBasicSensor::GetPortClockMap ` - :ref:`OcaBasicSensor::GetPortClockMapEntry ` - :ref:`OcaBasicSensor::GetPortName ` - :ref:`OcaBasicSensor::GetPorts ` - :ref:`OcaBasicSensor::SetEnabled ` - :ref:`OcaBasicSensor::SetLabel ` - :ref:`OcaBasicSensor::SetLatency ` - :ref:`OcaBasicSensor::SetPortClockMap ` - :ref:`OcaBasicSensor::SetPortClockMapEntry ` - :ref:`OcaBasicSensor::SetPortName ` - :ref:`OcaBasicSensor::GetReadingState `